﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace StudioLive
{
    public partial class scriptBuilder : Form
    {
        public scriptBuilder()
        {
            InitializeComponent();
        }

        private void addLineButton_Click(object sender, EventArgs e)
        {
            string options = "";
            options += firstOptionComboBox.Text;
            if (secondOptionComboBox.Text != "")
            {
                options += "," + secondOptionComboBox.Text;
                if (thirdOptionComboBox.Text != "")
                {
                    options += "," + thirdOptionComboBox.Text;
                    if (fourthOptionComboBox.Text != "")
                    {
                        options += "," + fourthOptionComboBox.Text;
                    }
                }
            }
            scriptTextBox.Text += commandComboBox.Text + "?" + options + "\r\n";
            firstOptionComboBox.Text = "";
            secondOptionComboBox.Text = "";
            thirdOptionComboBox.Text = "";
            fourthOptionComboBox.Text = "";
            commandComboBox.Text = "";
        }
    }
}
